.category-page {
  display: flex;
  height: calc(100vh - 104px);
  background: #f8f9fa;
}

.category-sidebar {
  width: 100px;
  background: #f5f5f5;
  border-right: 1px solid #e8e8e8;
  overflow: hidden;
}

.category-list {
  height: 100%;
  overflow-y: auto;
  padding: 8px 0;
}

.category-list::-webkit-scrollbar {
  width: 4px;
}

.category-list::-webkit-scrollbar-track {
  background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 2px;
}

.category-list::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

.category-sidebar-item {
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  background: transparent;
  border-right: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 4px 0;
}

.category-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.category-sidebar-item.active {
  background: #fff;
  border-right-color: #ff6b35;
  color: #ff6b35;
}

.category-sidebar-icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.category-sidebar-item.active .category-sidebar-icon {
  transform: scale(1.1);
}

.category-sidebar-name {
  line-height: 1.2;
  word-break: break-all;
}

.category-content {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
}

.category-loading {
  text-align: center;
  padding: 40px;
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.category-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.category-product-info {
  padding: 12px;
}

.category-product-name {
  font-size: 12px;
  color: #333;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.category-product-price {
  font-size: 14px;
  font-weight: 600;
  color: #ff6b35;
}

/* 移动端适配 */
@media (max-width: 375px) {
  .category-sidebar {
    width: 80px;
  }
  
  .category-sidebar-item {
    padding: 12px 4px;
  }
  
  .category-sidebar-icon {
    font-size: 18px;
  }
  
  .category-sidebar-name {
    font-size: 11px;
  }
  
  .category-content {
    padding: 6px;
  }
  
  .category-products-grid {
    gap: 6px;
  }
} 